package leeon.mobile.server.bbscache.entity;

import java.util.Date;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Blob;


@PersistenceCapable
public class Picture {
	
	@PrimaryKey
	@Persistent
	private String path = null;
	
	@Persistent
	private Blob blob = null;
	
	@Persistent
	private Date create = null;
	
	public Picture(String path, Blob blob) {
		super();
		this.path = path;
		this.blob = blob;
		this.create = new Date();
	}
	
	public Picture(String path) {
		super();
		this.path = path;
		this.create = new Date();
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public Blob getBlob() {
		return blob;
	}

	public void setBlob(Blob blob) {
		this.blob = blob;
	}

	public Date getCreate() {
		return create;
	}

	public void setCreate(Date create) {
		this.create = create;
	}
}
